﻿#ifndef MSGIDMANAGER_H
#define MSGIDMANAGER_H

#include <qobject.h>

class MsgIdManager :  public QObject
{
  Q_OBJECT
private://property
  ushort static msgId;
  ushort static mask;
public:
  explicit MsgIdManager(QObject *parent = nullptr);
  virtual ~MsgIdManager();
signals:
public:

public:
  ushort static getMsgId();
  ushort static getNextMsgId(ushort currentMsgId);
  bool static isReceiveOldMsgId(ushort currentMsgId,ushort msgIdReceived);
};

#endif // MSGIDMANAGER_H
